package com.example.designpattenexample.flyweight.example;

public class ChesspieceFlyweight implements Chesspiece {

    private String color;

    public ChesspieceFlyweight(String color) {
        this.color = color;
    }

    @Override
    public void put(int x, int y) {
        System.out.println(color + " ("+x+","+y+")");
    }
}
